﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Weibo.Data;
using System.Data.Common;
using System.Data;
using Weibo.Entity;
using Weibo.Common;
using System.Data.SqlClient;

namespace Weibo.Data
{
    public   class CommonData  
    { 
        public static DataTable GetCommonDataTable(string tableName, string fileds, string sort, string searchWhere)
        {
            return DatabaseProvider.GetInstance().GetTableByQuery(tableName, searchWhere,fileds,sort,"desc");
        }
    }
}
